import jdRow from './rule/jd-row';
import jdTab from './rule/jd-tab';
import jdSpan from './rule/jd-span';
import jdSpace from './rule/jd-space';
import jdDivider from './rule/jd-divider';
import jdAlert from './rule/jd-alert';

import jdInput from './rule/jd-input';
import jdTextarea from './rule/jd-textarea';
import jdEditor from './rule/jd-editor';
import jdEmail from './rule/jd-email';
import jdIdcard from './rule/jd-idcard';
import jdMoney from './rule/jd-money';
import jdMobile from './rule/jd-mobile';
import jdPhone from './rule/jd-phone';
import jdNumber from './rule/jd-number';
import jdCarnumber from './rule/jd-carnumber';
import jdSelect from './rule/jd-select';
import jdTreeselect from './rule/jd-treeselect';
import jdDate from './rule/jd-date';
import jdOrg from './rule/jd-org';
import jdCity from './rule/jd-city';
import jdData from './rule/jd-data';
import jdSubData from './rule/jd-subData';
import jdCascader from './rule/jd-cascader ';
import JdApprover from './rule/jd-approver';
import jdUpload from './rule/jd-upload';
import jdRate from './rule/jd-rate';
import jdRadio from './rule/jd-radio';
import jdCheckbox from './rule/jd-checkbox';
import jdSwitch from './rule/jd-switch';
import jdSignBoard from './rule/jd-signBoard';
import jdLink from './rule/jd-link';

export default function createMenu({ t }) {
    return [
        {
            name: 'layout',
            title: '布局组件',
            list: [jdRow, jdTab, jdSpan, jdSpace, jdDivider, jdAlert]
        },
        {
            name: 'input',
            title: '输入型组件',
            list: [jdInput, jdTextarea, jdEditor, jdEmail, jdIdcard, jdMoney, jdMobile, jdPhone, jdNumber, jdSubData, jdCarnumber, jdSignBoard]
        },
        {
            name: 'select',
            title: '选择型组件',
            list: [jdSelect, jdTreeselect, jdDate, jdOrg, jdCity, jdData, JdApprover, jdUpload, jdRate, jdRadio, jdCheckbox, jdSwitch]
        },
        {
            name: 'other',
            title: '其他组件',
            list: [jdLink]
        }
    ];
}
